//
//  UILabel+EV.h
//  EVClub
//
//  Created by sam on 14-9-24.
//  Copyright (c) 2014年 BitRice. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (EV)

@property (nonatomic, assign) IBInspectable BOOL ev_enableEmojiDecode;

// IBInspectable 属性不能使用setter重命名set方法名，否则使用了该属性的xib会报找不到属性
- (void)ev_setEnableEmojiDecode:(BOOL)enableEmojiDecode;

+ (CGSize)ev_sizeForText:(NSString *)text size:(CGSize)size attributes:(NSDictionary *)attributes;
+ (CGSize)ev_sizeForAttributedText:(NSAttributedString *)text size:(CGSize)size attributes:(NSDictionary *)attributes;
+ (CGSize)ev_sizeForText:(NSString *)text size:(CGSize)size attributes:(NSDictionary *)attributes enableEmojiDecode:(BOOL)enableEmojiDecode;
+ (CGSize)ev_sizeForAttributedText:(NSAttributedString *)text size:(CGSize)size attributes:(NSDictionary *)attributes enableEmojiDecode:(BOOL)enableEmojiDecode;

-(void) ev_adjustsWidthToFitText;
-(void) ev_adjustsWidthToFitText:(float)maxWidth;
-(void) ev_adjustsSizeToFitText:(float)maxWidth;
- (void)ev_adjustsHeightToFitText;

@end
